<admintpl file="header"/>
</head>
<body >
	<div class="wrap ">
		<ul class="nav nav-tabs">
			<li><a href="{:url('RockOrder/index')}">石材下单列表</a></li>
			<li class="active"><a href="{:U('RockOrder/orderadd')}">{:L('ADMIN_ROCK_ORDERADD')}</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form" action="{:U('RockOrder/add_post')}" method="post" enctype="multipart/form-data">
            <fieldset>
				<div class="control-group">
					<label class="control-label">{:L('ROCK_NAME')}</label>
					<div class="controls">
						<input type="text" name="goods_name" value="" id="goods_name"/>
						<span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:L('SELECT_PRODUCT')}</label>
					<div class="controls">
                    	<select name="cates">
							<volist name="cates" id="vo">
                                <option value="{$vo.id}">{$vo.cate_name}</option>
                            </volist>
						</select>
					</div>
				</div>
                <div class="control-group normal">
					<label class="control-label">{:L('SELECT_NUM')}</label>
					<div class="controls">
						<select>
                        	<option>1</option>
                        	<option>2</option>
                        	<option>3</option>
                        	<option>4</option>
                        	<option>5</option>
                        	<option>6</option>
                        	<option>7</option>
                        	<option>8</option>
                        	<option>9</option>
                        	<option>10</option>
                        </select>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('TAXPRICE')}</label>
					<div class="controls">
						<input type="text" name="stock" value="" id="stock"/>
                        <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('NOTAXPRICE')}</label>
					<div class="controls">
						<input type="text" name="stock" value="" id="stock"/>
                        <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('TAX')}</label>
					<div class="controls">
						<input type="text" name="stock" value="" id="stock"/>
                        <span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group normal">
					<label class="control-label">{:L('TYPE')}</label>
					<div class="controls">
						<select>
                        	<option>到付</option>
                        	<option>寄付</option>
                        </select>
						<span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('ALLPRICE')}</label>
					<div class="controls">
						<input type="text" name="stock" value="" id="stock" disabled/>
                        <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('TIME')}</label>
					<div class="controls">
						<input type="text" name="stock" class="js-date" value="" id="stock"/>
                        <span class="form-required">*</span>
					</div>
				</div>
				<div class="control-group">
					<label class="control-label">{:L('ADDRESS')}</label>
					<div class="controls">
						<input type="text" name="stock" value="" id="stock"/>
                        <span class="form-required">*</span>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:L('SELECT_SUPPLIER')}</label>
					<div class="controls">
                    	<select name="cates">
							<volist name="cates" id="vo">
                                <option value="{$vo.id}">{$vo.cate_name}</option>
                            </volist>
						</select>
					</div>
				</div>
                <div class="control-group">
					<label class="control-label">{:L('UPLOADCON')}</label>
					<div class="controls">
                        <input type="hidden" name="photos_url" id="photos_url" value="{$goods.photos_url}">
                        <img height="36" src="" class="preview isHide" id="photos_url_preview" />
						<a class="btn btn-primary" onClick="upload_one_image('上传订货合同', '#photos_url')">{:L("UPLOAD")}</a>
						<span class="form-required">*</span>
					</div>
				</div>            
			</fieldset>
			<div class="form-actions">
				<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
				<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
			</div>
		</form>
	</div>
    <admintpl file="Goods/include"/>
	<script type="text/javascript">
        $("#btn").click(function(){
            upload_one("视频上传", "#video_path", "video");
        });
		
    </script>
</body>
</html>